var express = require('express');
var router = express.Router();

var query=require('../config/mysql.js');

router.get('/', function(req, res, next) {

    query("select * from text",function(err,vals,fields){
        //do something
         res.send(vals);
        // return vals;
    })

});

module.exports = router;
